#ifndef __NJGIS_NJDATAFACTORY_H__
#define __NJGIS_NJDATAFACTORY_H__

#include "../include/INxData.h"
#include "../include/INxDataConfiguration.h"
#include "json/json.h"

namespace NJGIS
{
	namespace SERVICE
	{
		class NjDataFactory
		{
		public:
			static NJGIS::SERVICE::INjData* createDataByJSON(Json::Value &jData, const char* ip, int port);

			static NJGIS::SERVICE::INjDataConfiguration* createDataConfigByJSON(Json::Value &jConfig);

			static NJGIS::SERVICE::NjDataType convertString2DataType(const char* ctype);
		};
	}
}

#endif